package com.helloandroid.services

import androidx.core.content.edit
import com.helloandroid.MyApplication

object ServicePref {
    val PrefServiceName = "service_pref"
    fun saveUserId(userId:Int){
        MyApplication.getPerference(PrefServiceName).edit(commit = true){
            putInt("userId",userId)
        }
    }
    fun getUserId():Int{
        return MyApplication.getPerference(PrefServiceName).getInt("userId",-1)
    }
}